package com.xyoto.community.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Range;
import org.springframework.web.multipart.MultipartFile;

import javax.validation.constraints.NotNull;

/**
 * @author coderFu
 * @create 2022/2/17
 */
@ApiModel("更新首页精选轮播图实体类")
@Data
public class UpdateSelectedRotationDTO {

    @ApiModelProperty("轮播图图片")
    @NotNull(message = "图片不能为空")
    private MultipartFile file;

    @ApiModelProperty("轮播图链接")
    private String link;

    @ApiModelProperty("轮播图顺序")
    private Integer orders;

    @ApiModelProperty("轮播图展示状态 1、展示 2、非展示")
    @Range(min = 1,max = 2,message = "展示状态")
    private Integer status;




}
